In every possible manner, direction, etc; comprehensively: She had him beat forty ways to Sunday
[1840+; origin unknown]